<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<!-- Copyright 1997 The Open Group, All Rights Reserved -->
<title>asa</title>
</head><body bgcolor=white>
<center>
<font size=2>
The Single UNIX &reg; Specification, Version 2<br>
Copyright &copy; 1997 The Open Group

</font></center><hr size=2 noshade>
<h4><a name = "tag_000_000_058">&nbsp;</a>NAME</h4><blockquote>
asa - interpret carriage-control characters
</blockquote><h4><a name = "tag_000_000_059">&nbsp;</a>SYNOPSIS</h4><blockquote>
<code>
<p>
<i>asa</i>
<b>[</b><i>file ...</i><b>]</b>
</code>
</blockquote><h4><a name = "tag_000_000_060">&nbsp;</a>DESCRIPTION</h4><blockquote>
The
<i>asa</i>
utility will write its input files to standard output, mapping
carriage-control characters from the
text files to line-printer control sequences
in an implementation-dependent manner.
<p>
The first character of every line will be removed
from the input, and the following actions will be performed:
<p>
If the character removed is:
<dl compact>

<dt>space<dd>The rest of the line will be output without change.

<dt><b>0</b><dd>A
newline character
will be output, then the rest of the input line.

<dt><b>1</b><dd>One or more implementation-dependent characters that causes
an advance to the next page will be output, followed by the rest of
the input line.

<dt><b>+</b><dd>The
newline character
of the previous line will be replaced with one or more implementation-dependent
characters that causes printing to return to column position 1,
followed by the rest of the input line.
If the
"+"
is the first character in the input, it will have the same effect as
the space character.

</dl>
<p>
The action of the
<i>asa</i>
utility is unspecified upon encountering any character other than
those listed above as the first character in a line.
</blockquote><h4><a name = "tag_000_000_061">&nbsp;</a>OPTIONS</h4><blockquote>
None.
</blockquote><h4><a name = "tag_000_000_062">&nbsp;</a>OPERANDS</h4><blockquote>
<dl compact>

<dt><i>file</i><dd>A pathname of a text file used for input.
If no
<i>file</i>
operands are specified,
the standard input will be used.

</dl>
</blockquote><h4><a name = "tag_000_000_063">&nbsp;</a>STDIN</h4><blockquote>
The standard input will be used only if no
<i>file</i>
operands are specified.
See the INPUT FILES section.
</blockquote><h4><a name = "tag_000_000_064">&nbsp;</a>INPUT FILES</h4><blockquote>
The input files must be text files.
</blockquote><h4><a name = "tag_000_000_065">&nbsp;</a>ENVIRONMENT VARIABLES</h4><blockquote>
The following environment variables affect the execution of
<i>asa</i>:
<dl compact>

<dt><i>LANG</i><dd>Provide a default value for the internationalisation variables
that are unset or null.
If
<i>LANG</i>
is unset or null, the corresponding value from the
implementation-dependent default locale will be used.
If any of the internationalisation variables contains an invalid setting, the
utility will behave as if none of the variables had been defined.

<dt><i>LC_ALL</i><dd>
If set to a non-empty string value,
override the values of all the other internationalisation variables.

<dt><i>LC_CTYPE</i><dd>
Determine the
locale for the interpretation of sequences of bytes of text data as
characters (for example, single- as opposed to multi-byte characters
in arguments and input files).

<dt><i>LC_MESSAGES</i><dd>
Determine the locale that should be used to affect
the format and contents of diagnostic
messages written to standard error.

<dt><i>NLSPATH</i><dd>
Determine the location of message catalogues
for the processing of
<i>LC_MESSAGES .
</i>
</dl>
</blockquote><h4><a name = "tag_000_000_066">&nbsp;</a>ASYNCHRONOUS EVENTS</h4><blockquote>
Default.
</blockquote><h4><a name = "tag_000_000_067">&nbsp;</a>STDOUT</h4><blockquote>
The standard output will be the text from the input file
modified as described in the DESCRIPTION section.
</blockquote><h4><a name = "tag_000_000_068">&nbsp;</a>STDERR</h4><blockquote>
None.
</blockquote><h4><a name = "tag_000_000_069">&nbsp;</a>OUTPUT FILES</h4><blockquote>
None.
</blockquote><h4><a name = "tag_000_000_070">&nbsp;</a>EXTENDED DESCRIPTION</h4><blockquote>
None.
</blockquote><h4><a name = "tag_000_000_071">&nbsp;</a>EXIT STATUS</h4><blockquote>
The following exit values are returned:
<dl compact>

<dt>0<dd>All input files were output successfully.

<dt>&gt;0<dd>An error occurred.

</dl>
</blockquote><h4><a name = "tag_000_000_072">&nbsp;</a>CONSEQUENCES OF ERRORS</h4><blockquote>
Default.
</blockquote><h4><a name = "tag_000_000_073">&nbsp;</a>APPLICATION USAGE</h4><blockquote>
None.
</blockquote><h4><a name = "tag_000_000_074">&nbsp;</a>EXAMPLES</h4><blockquote>
The following command:
<pre>
<code>
asa file
</code>
</pre>
permits the viewing of
<b>file</b>
(created by a program using FORTRAN-style carriage control characters)
on a terminal.
<p>
The following command:
<pre>
<code>
a.out | asa | lp
</code>
</pre>
formats the FORTRAN output of
<b>a.out</b>
and directs it to the printer.
</blockquote><h4><a name = "tag_000_000_075">&nbsp;</a>FUTURE DIRECTIONS</h4><blockquote>
None.
</blockquote><h4><a name = "tag_000_000_076">&nbsp;</a>SEE ALSO</h4><blockquote>
<i><a href="fort77.html">fort77</a></i>,
<i><a href="lp.html">lp</a></i>.
</blockquote><hr size=2 noshade>
<center><font size=2>
UNIX &reg; is a registered Trademark of The Open Group.<br>
Copyright &copy; 1997 The Open Group
<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]

</font></center><hr size=2 noshade>
</body></html>
